
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_xml_util_DomParser__
#define __gnu_xml_util_DomParser__

#pragma interface

#include <java/lang/Object.h>
extern "Java"
{
  namespace gnu
  {
    namespace xml
    {
      namespace util
      {
          class DomParser;
      }
    }
  }
  namespace org
  {
    namespace w3c
    {
      namespace dom
      {
          class Node;
      }
    }
    namespace xml
    {
      namespace sax
      {
          class ContentHandler;
          class DTDHandler;
          class EntityResolver;
          class ErrorHandler;
          class InputSource;
        namespace ext
        {
            class DeclHandler;
            class DefaultHandler2;
            class LexicalHandler;
        }
        namespace helpers
        {
            class NamespaceSupport;
        }
      }
    }
  }
}

class gnu::xml::util::DomParser : public ::java::lang::Object
{

public:
  DomParser();
  DomParser(::org::w3c::dom::Node *);
  ::org::xml::sax::EntityResolver * getEntityResolver();
  void setEntityResolver(::org::xml::sax::EntityResolver *);
  void setLocale(::java::util::Locale *);
  ::org::xml::sax::ErrorHandler * getErrorHandler();
  void setErrorHandler(::org::xml::sax::ErrorHandler *);
  ::org::xml::sax::ContentHandler * getContentHandler();
  void setContentHandler(::org::xml::sax::ContentHandler *);
  ::org::xml::sax::DTDHandler * getDTDHandler();
  void setDTDHandler(::org::xml::sax::DTDHandler *);
  void parse(::java::lang::String *);
  void parse(::org::xml::sax::InputSource *);
private:
  void parse();
  jboolean getIsL2(::org::w3c::dom::Node *);
public:
  jboolean getFeature(::java::lang::String *);
  ::java::lang::Object * getProperty(::java::lang::String *);
  void setFeature(::java::lang::String *, jboolean);
  void setProperty(::java::lang::String *, ::java::lang::Object *);
private:
  void setStart(::org::w3c::dom::Node *);
  void walk();
  void callEnd(::org::w3c::dom::Node *);
  ::org::xml::sax::ext::DefaultHandler2 * __attribute__((aligned(__alignof__( ::java::lang::Object)))) defaultHandler;
  ::org::xml::sax::ContentHandler * contentHandler;
  ::org::xml::sax::DTDHandler * dtdHandler;
  ::org::xml::sax::ext::DeclHandler * declHandler;
  ::org::xml::sax::ext::LexicalHandler * lexicalHandler;
  ::org::xml::sax::ErrorHandler * errHandler;
  ::org::xml::sax::EntityResolver * resolver;
  ::java::util::Locale * locale;
  ::org::w3c::dom::Node * start;
  ::org::w3c::dom::Node * current;
  jboolean isL2;
  jboolean showNamespaces;
  jboolean showXML1_0;
  ::org::xml::sax::helpers::NamespaceSupport * prefixStack;
  jboolean isDocument;
  static ::java::lang::String * FEATURES;
  static ::java::lang::String * HANDLERS;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_xml_util_DomParser__
